ActionController::Routing::Routes.draw do |map|
  map.with_options :controller => :user_sessions do |m|
    m.login '/login', :action => :new, :conditions => {:method => :get}
    m.connect '/login', :action => :create, :conditions => {:method => :post}
    m.logout '/logout', :action => :destroy, :conditions => {:method => :delete}
  end
  
  map.resources :users
  map.root :controller => :pages, :action => :home
end
